<template>
    <div class="Technical">
        <h3>技术问答</h3>
        <div class="Technical_content">
            <div class="Technical_content_item" v-for="item in data" @click="goDetail(item.key)">
                <img src="../assets/image/HK/idea.jpg" alt="">
                <div>{{ item.title }}</div>
            </div>
        </div>
    </div>
</template>

<script>
import { List } from './TechnicalQAData'
export default {
    data() {
        return {
            data:null
        };
    },
    created() {
        this.data=JSON.parse(JSON.stringify(List))
        console.log(this.$route.query.key);
    },
    components: {},
    watch: {},
    methods: {
        goDetail(key) {
            this.$router.push('/TechnicalQA_detail?key=' + key)
        }
    },
    computed: {},
}
</script>

<style scoped>
.Technical {
    padding: 0 10%;
    width: 100%;
    height: calc(100vh - 240px);
}

h3 {
    font-weight: bold;
    font-size: 32px;
    margin: 50px 0;
    text-align: center;
}

.Technical_content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.Technical_content_item {
    width: 49%;
    height: 100px;
    /* background-color: pink; */
    border-radius: 10px;
    border: 1px solid #f1f0f0;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 25px;
    box-sizing: border-box;
    cursor: pointer;
}

.Technical_content_item div {
    margin-left: 20px;
    color: rgb(54, 85, 165);
    font-size: 18px;
}
.Technical_content_item:hover{
    transition: all .5s;
    transform: scale(1.1);
    box-shadow: 10px 10px 10px rgba(54, 85, 165,.08);
}
.Technical_content_item::before {
    content: '';
    display: block;
    width: 4px;
    height: 90px;
    background-color: rgb(54, 85, 165);
    /* border-radius: 50%; */
    position: absolute;
    top: 5px;
    left: 0px;
}</style>